package com.aspose.cells;

class zaea {
   private zaeh a = null;

   zaea(zaeh var1) {
      this.a = var1;
   }

   void a(zafg var1, String var2, String var3, String var4, String var5) throws Exception {
      StreamProviderOptions var6 = new StreamProviderOptions();
      zafg var7 = this.a.a(var1, var2, var3, var4, var5, var6);

      try {
         var7.a("<html>");
         var7.b("<head>");
         var7.b("<meta http-equiv=Content-Type content=\"text/html; charset=gb2312\">");
         var7.b("<meta name=ProgId content=Excel.Sheet>");
         var7.b("<meta name=Generator content=\"Microsoft Excel 11\">");
         var7.b("<link id=Main-File rel=Main-File href=\"../" + this.a.j + "\">");
         var7.b("");
         var7.b("<script language=\"JavaScript\">");
         var7.b("<!--");
         var7.b("if (window.name!=\"frTabs\")");
         var7.b(" window.location.replace(document.all.item(\"Main-File\").href);");
         var7.b("//-->");
         var7.b("</script>");
         var7.b("<style>");
         var7.b("<!--");
         var7.b("A {");
         var7.b("    text-decoration:none;");
         var7.b("    color:#000000;");
         var7.b("    font-size:9pt;");
         var7.b("}");
         var7.b("-->");
         var7.b("</style>");
         var7.b("</head>");
         var7.b("<body topmargin=0 leftmargin=0 bgcolor=\"#808080\">");
         var7.b("<table border=0 cellspacing=1>");
         var7.b(" <tr>");

         for(int var8 = 0; var8 < this.a.r.size(); ++var8) {
            Worksheet var9 = (Worksheet)this.a.r.get(var8);
            if (var9.isVisible() || this.a.c().getExportHiddenWorksheet()) {
               String var10 = "sheet" + zaff.a(var8 + 1, 3) + ".htm";
               String var11 = (String)this.a.v.get(var10);
               String var12 = var11 != null && this.a.c().isFullPathLink() ? var11 : var10;
               var7.b(" <td bgcolor=\"#FFFFFF\" nowrap><b><small><small>&nbsp;<a href=\"" + var12 + "\" target=\"frSheet\"><font face=\"Arial\" color=\"#000000\">" + var9.getName() + "</font></a>&nbsp;</small></small></b></td>");
            }
         }

         var7.g();
         var7.b(" </tr>");
         var7.b("</table>");
         var7.b("</body>");
         var7.b("</html>");
         var7.g();
         var7.h();
         this.a.u.closeStream(var6);
      } finally {
         ;
      }
   }
}
